﻿@using QDT.Common
@model IPagedList<QDT.Core.Projects.Project>
<div class="main_title">
    管理员列表</div>
<div class="blank5">
</div>
<div class="button_row">
    <a class="button" href="javascript: foreverdel()">彻底删除</a>
    <a class="button" href="javascript: restore()">恢复</a>
</div>
<div class="blank5">
</div>
<div class="grid_box">
    <div class="grid_top">
    </div>
    @Html.Grid(Model).Columns(column =>
                                  {
                                      column.CheckBox(x => x.ID);
                                      column.For(x => x.ID).Named("编号").HeaderAttributes(style => "width:50px;");
                                      column.For(x => x.Name).Named("贷款名称名称").SortColumnName("Name");
                                      column.For(x => Html.F().GetPrjectTypeName(x.TypeID)).Named("投标类型").SortColumnName("TypeID");
                                      column.For(x => Html.F().GetUserName(x.UserID)).Named("借款人").SortColumnName("UserID");
                                      column.For(x => x.Status.ToLocalizable()).Named("投标状态").SortColumnName("Status");
                                      column.For(x => x.Sort).Named("排序").SortColumnName("Sort");
                                      column.For(x => x.IsEffect ? "有效" : "无效").Named("状态").SortColumnName("IsEffect");
                                      column.Buttons(btns => btns.Add(x => Html.ScriptLink("彻底删除", "foreverdel({0})", x.ID))
                                                                 .Add(x => Html.ScriptLink("恢复", "restore({0})", x.ID)));
                                  }).Complex(ViewData)
    <div class="grid_foot">
    </div>
</div>
<div class="blank5">
</div>
@Html.Pager(Model)
